package bean;

import java.util.Arrays;
import java.util.List;

public class Teacher {
    private MyClass myClass;
    private String name;
    private String[] course_names;

    public MyClass getMyClass() {
        return myClass;
    }

    public void setMyClass(MyClass myClass) {
        this.myClass = myClass;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getCourse_names() {
        return course_names;
    }

    public void setCourse_names(String[] course_names) {
        this.course_names = course_names;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("Teacher{\n");
        sb.append("  name='").append(name).append("',\n");
        sb.append("  myClass=").append(myClass).append(",\n");
        sb.append("  course_names=").append(Arrays.toString(course_names)).append("\n");
        sb.append('}');
        return sb.toString();
    }
}
